{include file="public/header"}
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
    <title>消息</title>
    <link rel="stylesheet" type="text/css" href="__CSS__/tt.css" />
    <link href="/static/admin/css/font-awesome.min.css?v=4.7.0" rel="stylesheet">
    <link href="__JSS__/plugins/layui/css/layui.css" rel="stylesheet">
    <style media="screen">
        html body {
            margin: 0;
            background-color: #EEEEEE;
            width: 100%;
            height: 100%;
            font-size: 14px;
            color: #333333;
            font-weight: 500;
        }
        .flex-wrap{ display: -webkit-box;	display:box;display: -webkit-flex;	display: flex; }
        .flex-wrap2{  flex-wrap:wrap }
        .flex-con{  -webkit-box-flex: 1;     -webkit-flex: 1;    flex: 1;}
        .flex-vertical{  -webkit-box-horizontal: vertical;-webkit-flex-flow: column; flex-flow: column;}

        .color333 {
            font-size: 14px;
            color: #333; font-weight: normal;
        }

        .color {

        }

        .content {
            width: 1200px;
            margin: 30px auto;
            background-color: #fff;
            border-radius: 3px;
        }

        .base {
            width: 100%;
            height: 42px;
            line-height: 42px;
            text-align: center;
        }

        .base>div:first-child {
            float: left;
            width: 92px;
            height: 42px;
            border-top: 3px solid #0065F0;
            border-right: 1px solid #F4F4F4;
            box-sizing: border-box;
            position: relative;
            line-height: 40px;
            border-radius: 3px;
        }

        .base>div:nth-child(2) {
            float: right;
            width: 1108px;
            height: 42px;
            text-align: left;
            box-sizing: border-box;
            border-bottom: 1px solid #F4F4F4;

        }

        .ling {
            width: 92px;
            height: 100%;
            text-align: center;
            font-size: 14px;
            color: #999999;
            font-weight: normal;
            line-height: 40px;
            border-top: 3px solid #fff;
            box-sizing: border-box;
        }
        .info{
            height: 100%;
            margin-left:125px;
            margin-top: 57px;
        }
        .item{
            margin-bottom: 10px;
        }
        .item_left{
            width: 138px;

        }
        .img1{
            width: 100px;
            height: 100px;
            border-radius: 4px;
        }
        .color>div{
            width: 520px;
            border-radius: 3px;
            border: 1px solid #ccc;
            padding: 20px;
            font-size: 14px;
            color: #999;
            font-weight: normal;
        }
        .jianjie{
            margin-top: 16px;
        }

        .wrap1 {
            width: 100%;
            background: #3F3F3F;
            height: 30px;
            line-height: 30px;
        }

        .wrap1 .content1 {
            margin: 0 auto;
            width: 1200px;
            font-size: 12px;
            color: #ffffff;
            /*position: relative;*/
            display: flex;
        }

        .kong {
            flex: 1;
        }

        .content12 {
            position: relative;
        }

        .redhot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #BA0000;
            position: absolute;
            left: 24px;
            top: 5px;
        }

        .wrap2 {
            line-height: 60px;
            width: 100%;
            height: 60px;
            background: #ffffff;
        }

        .content2 {
            margin: auto;
            width: 1200px;
            display: flex;
        }

        .content2_left {
            width: 190px;
            font-size: 18px;
            color: #333333;
        }

        .content2_left span {
            display: inline-block;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #0065F0;
            vertical-align: middle;
            margin-right: 11px;
        }

        .content_middle {
            flex: 1;
            text-align: left;
            display: flex;
        }

        .content_right {
            font-size: 16px;
        }

        .content_right img {
            display: inline-block;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            margin-right: 20px;
            vertical-align: middle;
        }

        .content_middle .item {
            width: 152px;
        }

        .content_middle .item.active2 {
            color: #0065F0;
        }

        .wrap3 {
            line-height: 60px;
            width: 100%;
            height: 60px;
            background: #0065F0;
        }

        .content3 {
            margin: auto;
            width: 1200px;
            display: flex;
        }

        .content3-left {
            line-height: 60px;
            color: #ffffff;
            font-size: 16px;
        }

        .wrap4{
            width: 1200px;
            box-sizing: border-box;
            margin: 30px auto 94px;
            background: #ffffff;
            padding: 50px 27px 122px 27px;
            position: relative;
        }
        .wrap4 .every{
            border-radius:4px 4px 0px 0px;
            padding: 15px 30px;
            position: relative;
        }
        .everydetail1{
            display: block;

            position: relative;
            height:18px;
            width: auto;
            font-size:14px;
            font-family:PingFangSC-Semibold;
            font-weight:600;
            color:rgba(102,102,102,1);
            line-height:18px;
            margin-bottom: 11px;
        }
        .red{
            position: absolute;
            width:6px;
            height:6px;
            background:rgba(186,0,0,1);
            border-radius: 50%;
            left:28px;
            top:-3px
        }
        .everydetail2{
            height:18px;
            font-size:12px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(102,102,102,1);
            line-height:18px;
            margin-bottom: 11px;
        }
        .everydetail3{
            height:18px;
            font-size:12px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(102,102,102,1);
            line-height:18px;
        }
        .bg_hui{
            background:rgba(247,247,247,1);

        }
        .wrap4 .every:last-child{
            border-bottom: 2px solid #EEEEEE;
        }
        .border2{
            /*       border-bottom:2px solid #EEEEEE;*/
        }
        .page{
            position: absolute;
            height: 122px;
            right: 30px;
            bottom:0;
            display: inline-block;
            text-align: left;
            line-height: 122px;
            color: #999999;
            font-size:12px;
        }
        .page .page1{
            display: inline-block;
            width: 36px;
            height: 17px;
            height:17px;
            font-size:12px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(153,153,153,1);
            line-height:17px;
            text-align: center;
            margin-right: 20px;
        }
        .page .page2{
            vertical-align: middle;
            display: inline-block;
            width:28px;
            height:28px;
            font-size:12px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(153,153,153,1);
            line-height:28px;
            text-align: center;
            color: #999999;
            border-radius:2px;
            border:1px solid rgba(242,242,242,1);
        }
        .page .page3{
            vertical-align: middle;
            display: inline-block;
            width:auto;
            height:28px;
            margin: 0 10px;
            font-size:12px;
            color: #282828;
            line-height: 18px;
            text-align: center;

        }
        .page .page2.active{
            background:#0065F0;
            color: #FFFFFF;
            border-radius:2px;
            border:1px solid #0065F0;
        }
        .delete{
            position: absolute;
            width:68px;
            height:28px;
            line-height: 28px;
            border-radius:3px;
            border:1px solid rgba(6,100,240,1);
            text-align: center;
            font-size:12px;
            font-family:PingFangSC-Regular;
            font-weight:400;
            color:rgba(0,101,240,1);
            top:50%;
            right:30px;
            transform:translate(0,-50%);
            -ms-transform: translate(0,-50%);
            -moz-transform: translate(0,-50%);
            -webkit-transform: translate(0,-50%);
            -o-transform: translate(0,-50%);
        }

    </style>
</head>

<body>
<div class="wrap3">
    <div class="content3">
        <div class="content3-left">
            消息
        </div>
    </div>
</div>
<div class="wrap4">
    <div class="page flex-wrap">
        {$data->render()}
    </div>
{volist name="data" id="vo" key="k"}
    <div class="every bg_hui" {if ($k%2) == 0}style="background:#fff" {/if}>
  		<span class="everydetail1">
  			<!--充值-->
            {$vo.n_title}
  			<!--<div class="red">-->

  			<!--</div>-->
  		</span>
        <div class="everydetail2">
            {$vo.n_content}
        </div>
        <div class="everydetail3">
            {$vo.n_time}

        </div>
        <div class="delete" data-id="{$vo.n_id}" style="cursor: pointer">
            删除
        </div>
    </div>
{/volist}
</div>

</body>
<script src="/static/admin/js/jquery.min.js"></script>
<script>
    /*删除*/
    $(".delete").click(function () {
        if (confirm('确认删除吗？')) {
            var id = $(this).attr('data-id');
            $.ajax({
                url: '/shop/Center/delnews',
                data: 'id=' + id,
                type: 'POST',
                dataType: 'JSON',
                success: function (returnData) {
                    alert(returnData.msg);
                    if (returnData.status == 200) {
                        location.reload();
                    }
                },
                error: function () {
                    alert('数据出错，请刷新重试');
                }
            })
        }
    });
</script>
</html>
